package com.example.easybuy.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class AlipayProperties {
    @Value("${pay.alipay.app_id}")
    private String app_id = null;

    public String getApp_id() {
        return app_id;
    }

    public void setApp_id(String app_id) {
        this.app_id = app_id;
    }

    // 商户私钥，您的PKCS8格式RSA2私钥
    public static String merchant_private_key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC2VZkutTN1unRw4g3FTGaVbZedl9IyaWknJ2odn52gtvUGSPNZUdUYA1W4ZaclvL8C/Cb/FhksqPQ9w5KqB3ZOj2aiFSZrPCvMuVksI+npd4h38HtYMXi+KyhZ5eM+20hbL+3y8a4EOfK+hKkZmOhKUKshXfNgLE8d8RrADORK0IfLwOdixw74d4YSSpMWBGG9E0jqE8hEWCfu7X6HB/fLOJ4KPNsrICIbzxyQZmz7+pvNHd6rVA7T5aaM8gcSZoSnpTDcAtss/7IoVwLg0xXHFan9sdrtJS+wRhRxRcWzOUXyq/hUwTtS4R/V9rZUH5OHeB99UogXL8GTlrtifclZAgMBAAECggEAX2OcxhDKITcwn7XDmoqDyH0TKsE4mGMJPhCitWjB4EiXG3iixwHGx89G0zdrIJUEIR2lkSIQfYrObFmaqxVIUYU4HmeON9+80lfNTQhk4V1FqenHvbX0Axk0/QMFxeaWjg4fIFBLx65BTma8yMV0ERzuyoAKSTAlG/b9Fago7vIQ8F42wxAEid5OEC0K47yycmmLFc0rxTbioHv6HRF2EtuuCKhX+diEFwAW/Kpf6n9TFZC2SYOMAhjD2w2I236v77zoDzSmFRf1zUFlotw8tIL/7ZHuO7cCFxKbuiM6g/e9h1yAP383AOCBHjpLFJfLfJaRMDMsmB6rj6JzBBhjYQKBgQD6eYMHXdiOmfUKvag0TinhmLEXInDSFP8IlSj+yznL+BXOJbbvKWnnY1BWoW6IYKoh2nfPehcUA/iUg1fJfIPFGyT08x7cG7xlIztaX8rl41FKo/kXjUoUSXrAhh5qYiSbjEdJAj9ZTiNzffmaJOtrMC5BZWGtcyDuzhwqeEOH7QKBgQC6W0hZiUOQYOC1+D/JxXPNsmnUPjv0oQeeQf1JFc+cdqvgmbR2x5K7zpSAR4MYlSrkgSw4a9ZcvzHxWZ6DG1jjm/7LYx0XYXBgpeZer/AprAI498afZyn0sa3X+3f2Fyr29E2pJ6cuq4THGTqUkb3PsdAxhQZ03ILMCMSKU0mBnQKBgQCVW/AubF++aUAd74pl5lZDGHJBgWAVZj/ONmQDy9vjLUSTcRns850bRbWacxkeacYJ+eSH7B3m6ZdJuCiZFY7d8pnPF0rHpiJpjODPu1+aRjsrbywSR0ZtYoO4WkG43l1GBBheCOENt/Kb4/r7WBiqCkkK5hGhBI4W2QEisiRS4QKBgAoY7hej31xQU3yoodQt9bNcim1sndUIcKA7lRzDqMciiveVfHi/IY05iURWG51WX8eX1CyOc0P9PBiGsZcLAUr75ddhXG8q4WrrMktJHysy3b/2dPWoIlbW1cORJZPY94QAAsE6m81kj8I19L2eE/nP+ablPU9Rr2icxQF1t9LlAoGAVezNzGM4t6MwGCAA1Sr5w2zBwzcsvubQWC/b0K+19ldCuyCKkH99vMmdzxkj2nGkcZYFrQRtVHwb3udgXIy3Q+Dy+K+pusr4V2PPBS3WKv6MvxycZdcmWEGD/1jC3ojl0el+Ij07FwVd+JtqO427+nFELl7gBSx+Ian/DxUxvdc=";
    // 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
    public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA66IiTHv2Gt4KgpKMOWN0rUTdrUhByTlEi3KpS5CnVK2kkADTYM1U7EkuA7YwtVEUWN9mOgNTYzxv+Udg4PdTEZcQZ2O12VPckdoncNElzVtR4DumhoylF+j6QjI7k9kFhmJwPX+g2eeDyYsUm8tm/9G3QyUeqZXexK+3AnIO+c19n54cEFXW3dYqzM+Pcu0AzZ3wFdoA0GGpKcPvsHAjOCOJQrqIFXIw5b6mXODWoKneh12wPtygYgBstXS039g1x5O5MgTbNtET6p21uSHVhQppIpg9LORxV4IyYNVcshd2Ovra5WDATHEtblbDKaNiivq/Uhx0kJAqwjimwUZDFwIDAQAB";
    // 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String notify_url = "http://9nxgcm.natappfree.cc/api/notify_url";

    // 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
    public static String return_url = "http://9nxgcm.natappfree.cc/api/return_url";

    // 签名方式
    public static String sign_type = "RSA2";

    // 字符编码格式
    public static String charset = "UTF-8";

    // 支付宝网关
    public static String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";
}
